Allow registering actions per-class
authorMatthias Clasen <mclasen@redhat.com>
Fri, 14 Jun 2019 12:12:10 +0000 (12:12 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 18 Jun 2019 18:47:33 +0000 (14:47 -0400)
commitef031e1a9d024d62f5ec24bd70c25f1668ebe943
tree09b74701186aa212dd745a3c64da2433d9fde754
parent9b62da10e6c81889510c07f4a6ef23546e9aad92
Allow registering actions per-class

Add a facility to register and install actions
at class init time. The intended use for these
actions is for

a) context and other model-based menus
b) key bindings

Most of these actions are going to be stateless,
so add separate apis for the simple and stateful
cases.

We avoid creating an action group for these by
teaching the action muxer about these actions.
The action muxer also maintains the enabled
state for these actions.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkactionmuxer.c
gtk/gtkactionmuxerprivate.h
gtk/gtkapplication.c
gtk/gtkwidget.c
gtk/gtkwidget.h